{% if is_paginated %}
{% load i18n %}
<div class="pagination pagination-{{ float }} no-margin pagination-mini">
    <ul>
    {% if page_obj.has_previous %}
        <li>
            <a href="?page={{ page_obj.previous_page_number }}{{ getvars }}">&lsaquo;&lsaquo;&lsaquo;</a>
        </li>
    {% else %}
        <li class="disabled">
            <a>&lsaquo;&lsaquo;&lsaquo;</a>
        </li>
    {% endif %}

    {% for page in pages %}
        {% if page %}
            {% ifequal page page_obj.number %}
                <li class="active"><a>{{ page }}</a></li>
            {% else %}
                <li><a href="?page={{ page }}{{ getvars }}">{{ page }}</a></li>
            {% endifequal %}
        {% else %}
            <li class="disabled"><a href="#">...</a></li>
        {% endif %}
    {% endfor %}

    {% if page_obj.has_next %}
    <li>
        <a href="?page={{ page_obj.next_page_number }}{{ getvars }}" class="next">&rsaquo;&rsaquo;&rsaquo;</a>
    </li>
    {% else %}
    <li class="disabled">
        <a>&rsaquo;&rsaquo;&rsaquo;</a>
    </li>
    {% endif %}
    </ul>
</div>
{% endif %}
